package com.enqualcomm.kids.network.http.request;



import com.enqualcomm.kids.BuildConfig;

import java.io.File;

/**
 * Created by yinzhiqun on 2015/11/2.
 *
 */
public class UpdateUserInfoParams extends BasicParams {
    private static final String CMD = "updateuserinfo";
    private static final String VERSION = "1.0";

    public String userid;
    public String userkey;
    public String name;
    public String address;
    public String area;
    public String description;
    public int sex;
    public int age;
    public String filename;
    public String fileextraname;
    public String syschannel= BuildConfig.SYSCHANNEL;

    public UpdateUserInfoParams(String userid, String userkey, String name, String address, String area, String description, int sex,int age,String filename) {
        this.userid = userid;
        this.userkey = userkey;
        this.name = name;
        this.address = address;
        this.area = area;
        this.description = description;
        this.sex = sex;
        this.age = age;
        this.filename = filename;
        if (filename!=null){
            this.fileextraname = "png";
        }
    }

    @Override
    public String getCmd() {
        return CMD;
    }

    @Override
    public String getVersion() {
        return VERSION;
    }

    @Override
    public File getFile() {
        if (filename!=null){
            return new File(filename);
        }
        return null;
    }
}
